import Mock from 'mockjs';

const mockOrders = [];

for (let i = 0; i < 10; i++) {
    mockOrders.push(Mock.mock({
        "userName": "小王",
        "orderNo": "12154545",
        "orderCreateTime": "2019-01-08",
        "buyAim": 2,
        "deliveryType": 3,
        "consignee": "0",
        "phone": "0",
        "address": "0",
        "products": [
            {"id" : 23,"productName":"产品A","productPic":"https://ss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/logo_top_86d58ae1.png","price":20,"num":5,"attrs":"大包/原味","productId": 32},
          {"id" : 24,"productName":"产品B","productPic":"https://ss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/logo_top_86d58ae1.png","price":20,"num":4,"attrs":"大包/原味","productId": 11}
        ],
        "prodcutNum": 10,
        "totalMoney": 45
      }));
}

export { mockOrders };
